/**
 * @fileoverview This is the main math functions file
 */
 
(function(){
	var math = {
		swap: function swap( a, b ){
			var c = a;
			a = b;
			b = c;
		},
		sign: function sign( x ){
			return x < 0 ? -1 : 1;
		},
		clamp: function clamp( x, min, max ){
			if( x < min ){
				return min;
			}else if( x > max ){
				return max;
			}else{
				return x;
			}
		}
	};

	Box2d.Math = math;
})();